import { lazy } from 'react';

const variableRouter = [
  {
    path: '/case/check',
    name: '案件管理',
    des: '',
    component: lazy(() => import('./Check')),
    exact: true,
    auth: true
  },
  {
    path: '/case/check/:id/detail',
    name: '案件详情',
    des: '',
    component: lazy(() => import('./Check/Detail')),
    exact: true,
    auth: true
  },
  {
    path: '/case/task',
    name: '任务中心',
    des: '',
    component: lazy(() => import('./TaskCenter')),
    exact: true,
    auth: true
  },
  {
    path: '/case/task/:id/detail',
    name: '案件详情',
    des: '',
    component: lazy(() => import('./Check/Detail')),
    exact: true,
    auth: true
  },
  {
    path: '/case/lib',
    name: '风险案件库',
    des: '',
    component: lazy(() => import('./RiskCase')),
    exact: true,
    auth: true
  },
  {
    path: '/case/lib/:id/list',
    name: '案例列表',
    des: '',
    component: lazy(() => import('./RiskCase/CaseList')),
    exact: true,
    auth: true
  },
  {
    path: '/case/lib/:id/list/:id/detail',
    name: '案件详情',
    des: '',
    component: lazy(() => import('./Check/Detail')),
    exact: true,
    auth: true
  },
];

export default variableRouter;
